import request from "../utils/request";
//岗位列表
export const jobGet = (page: number = 1) => {
  let skip = (page - 1) * 10;
  return request.get("classes/job", {
    params: {
      limit: 10,
      skip,
    },
  });
};

//分类列表
export const categoryGet = () => {
  return request.get("classes/category", {
    params: {
      where: {
        parentId: "0-0",
      },
    },
  });
};

//岗位详情
export const jobDetailGet = (jobId: string) => {
  return request.get(`classes/job/${jobId}`);
};
